<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
	<title>警员信息查询页面</title>

	<link href="${prcs}/css/def/ztree/metro.css" rel="stylesheet">
	<link href="${prcs}/css/def/bootstrap/ace/ace-part2.min.css" rel="stylesheet">
    <link href="${prcs}/css/def/bootstrap/ace/ace.css" rel="stylesheet">
	<link href="${prcs}/css/def/frm/common/common.css" rel="stylesheet">
	<script src="${prcs}/js/jquery/plugin/jquery.ztree.all-3.5.min.js"></script>
	<style>
		table td {
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			text-align: center;
			font-size: 13px !important;
		}

		table th {
			text-align: center;
			font-size: 13px !important;
		}
		.roleChoose {
			padding:8px;
		}
</style>
	<script type="text/javascript">
		var hadPermission = {'update':false,'del':false,'getPerm':false,'getStaff':false};
		<shiro:hasPermission name="sys:role:update">
		hadPermission.update =true;
		</shiro:hasPermission>
		   <shiro:hasPermission name="sys:role:delete">
		hadPermission.del = true;
		</shiro:hasPermission>
		<shiro:hasPermission name="sys:role:getPerm">
		hadPermission.getPerm = true;
		</shiro:hasPermission>
		<shiro:hasPermission name="sys:role:getStaff">
		hadPermission.getStaff = true;
		</shiro:hasPermission>	
	</script>
	
	<script type="text/javascript">
	$(function(){
		$("#polciePhoto").attr("src",prc+"/staffForPolice/getPhoto?staffId="+${bean.staffId});
	});
	</script>

</head>
<body style="background-color:#fff;">
<div class="body">
<!-- 主页面展示 -->
<div style="height:100%;" class="main-content">
				<div class="page-content" style="background: #fff">
					<div id="myTabContent" class="tab-content" style="padding:0;">
						<div class="tab-pane fade in active" id="home" align="center">
							<div class="check-div">
								<div class="row check-row apply-row">
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">警员账号</span>
											<input id="staff_id" type="text" class="form-control" value="${bean.staffId}" placeholder="账号" disabled="disabled">
										</div>
									</div>
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">组织ID</span>
											<input type="org_id" class="form-control" placeholder="组织ID" disabled="disabled" value="${bean.orgId}">
										</div>
									</div>
								</div>
								<div class="row check-row apply-row">
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">姓名</span>
											<input id="staff_name" type="text" class="form-control" placeholder="姓名" disabled="disabled" value="${bean.staffName}">
										</div>
									</div>
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">警员类型</span>
											<input id="person_type" type="text" class="form-control" placeholder="警员类型" disabled="disabled" value="${bean.staffKind}">
										</div>
									</div>
								</div>
								<div class="row check-row apply-row">
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">手机号</span>
											<input id="phone" type="text" class="form-control" placeholder="手机号" disabled="disabled" value="${bean.phone}">
										</div>
									</div>
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">Email</span>
											<input id="email" type="text" class="form-control" placeholder="Email" disabled="disabled" value="${bean.email}">
										</div>
									</div>
								</div>
								<div class="row check-row apply-row">
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">地市</span>
											<input type="text" class="form-control" placeholder="地市" disabled="disabled" value="${bean.postCode}">
										</div>
									</div>

									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">单位名称</span>
											<input type="text" class="form-control" placeholder="单位名称" disabled="disabled" value="${bean.empCode}">
										</div>
									</div>
								</div>
								<div class="row check-row apply-row">
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">部门</span>
											<input type="text" class="form-control" placeholder="部门" disabled="disabled" value="${bean.staffId}">
										</div>
									</div>

									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">岗位</span>
											<input type="text" class="form-control" placeholder="岗位" disabled="disabled" value="${bean.staffSort}">
										</div>
									</div>
								</div>
								<div class="row apply-row">
									<div class="col-sm-6">
										<div class="input-group">
											<span class="input-group-addon">警员头像</span>
											<div>
												<img alt="警官证" style="width: 200px; height: 300px" id="polciePhoto"> 
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
<!-- 主页面展示结束 -->

</body>
<%-- <script src="${prcs}/js/frm/sys/jyxx.js"></script>
 --%></html>
